﻿using System.ComponentModel.DataAnnotations;

namespace TestWebApp.Models
{
    public class EmployeeModel : BaseEntityModel
    {
        [Required]
        [StringLength(50)]
        [DataType(DataType.Text)]
        public string FirstName { get; set; }

        [Required]
        [StringLength(50)]
        [DataType(DataType.Text)]
        public string LastName { get; set; }

        [Required]
        public int EmpNumber { get; set; }

        [DataType(DataType.EmailAddress)]
        [StringLength(50)]
        public string Email { get; set; }
    }
}